<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"> 

<h:head></h:head> 
<body>
<p:panel header="Cadastro de Cidade">	 
	<h:form>
		<p:panelGrid columns="2">

			ID: <p:inputText value="#{centroBean.centro.id}" ></p:inputText>
			Nome: <p:inputText value="#{centroBean.centro.nome}"></p:inputText>
			Data Inicio: <p:inputMask value="#{centroBean.centro.inicio}" mask="99/99/9999"><f:convertDateTime pattern="dd/MM/yyyy"/></p:inputMask>
			Data Termino:<p:inputMask value="#{centroBean.centro.encerramento}" mask="99/99/9999"><f:convertDateTime pattern="dd/MM/yyyy"/></p:inputMask>
		</p:panelGrid>
			<h:form>
				<p:commandButton value="Salvar" size="10" action="#{centroBean.salvar()}" ajax="false"></p:commandButton>	
				<p:commandButton value="Menu" action="#{menuBean.index}" ajax="false"></p:commandButton>	
				<p:commandButton value="Lista Cidades" action="#{menuBean.listaCidade}" ajax="false"></p:commandButton>	
			</h:form>
	</h:form>
</p:panel>


</body> 
</html>
